package ch.zhaw.swp1.view.component;

import java.io.File;

/**
 * Badge to a user selected Attachment in GUI
 * @author Daniel Tiefenauer
 */
public class AttachmentBadge extends Badge {

	/**
	 * Default version
	 */
	private static final long serialVersionUID = 1L;
	private File file = null;
	
	/***************************************************************************************/
	// Constructors
	/***************************************************************************************/
	public AttachmentBadge(File file){
		super(file.getName());
		this.file = file;
		init();
	}
	
	private void init(){
	}
	
	/**
	 * Get file represented by Badge
	 * @return file represented by Badge
	 */
	public File getFile(){
		return file;
	}

}
